<?php

namespace app\common\fieldMap;

use app\common\model\user\User;

/**
 * user数据操作日志记录返回的字段映射
 */
class UserOperateLogFieldMap
{
    public static function getMapData(): array
    {
        $map = [
            'username' => [
                'label' => '用户名',
            ],
            'mobile' => [
                'label' => '手机号',
            ],
            'nickname' => [
                'label' => '昵称',
            ],
            'status' => [
                'label' => '状态',
                'format' => User::STATUS_MAP,
            ],
        ];
        return $map;
    }
}